//package dup.login.demo.queue;
//
//import dup.login.demo.config.RabbitConfig;
//import org.springframework.amqp.rabbit.annotation.RabbitHandler;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.stereotype.Component;
//import org.springframework.util.MultiValueMap;
//
//import java.text.SimpleDateFormat;
//import java.util.Date;
//
//@Component
//@RabbitListener(queues = {RabbitConfig.QUEUE_NAME})
//public class RetryConsumer {
//    @RabbitHandler
//    public void recieved(MultiValueMap params) {
//        Date date = new Date();
//        String dateString = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date);
//        System.out.println("send msg date:" + dateString);
//        System.out.println("recieved order_id:" + params.getFirst("order_id"));
//
//        throw new RuntimeException("***********");
//    }
//}
